package me.jessyan.armscomponent.app.mvp.ui.adapter;

import android.view.View;

import androidx.annotation.NonNull;

import com.jess.arms.base.BaseHolder;
import com.jess.arms.base.DefaultAdapter;

import java.util.List;

import me.jessyan.armscomponent.app.R;
import me.jessyan.armscomponent.app.mvp.model.entity.diyRecite;
import me.jessyan.armscomponent.app.mvp.ui.holder.DiyReciteItemHolder;

public class DiyReciteAdapter extends DefaultAdapter<diyRecite> {
    public DiyReciteAdapter(List<diyRecite> infos) {
        super(infos);
    }

    @NonNull
    @Override
    public BaseHolder<diyRecite> getHolder(@NonNull View v, int viewType) {
        return new DiyReciteItemHolder(v);
    }

    @Override
    public int getLayoutId(int viewType) {
        return R.layout.layout_list_item5;
    }
}
